package com.hand.zc25650.aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class Log {
    @Pointcut("execution(* com.hand.zc25650.ioc.Person.sayHello(..))")
    public void sayHello() {

    }

    @Before("sayHello()")
    public void executeBefore() {
        System.out.println("Before 25650");
    }

    @After("sayHello()")
    public void executeAfter() {
        System.out.println("After 25650");
    }
}
